// 遍历当前目录和子目录
const requireComponent = require.context('./', true, /\w+\.vue$/)

const comps = {}

requireComponent.keys().map(fileName => {
  const comp = requireComponent(fileName).default;
  if (comp.name) comps[comp.name] = comp
})
// console.log('pro edit', comps)
export default comps;
